package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import lombok.Data;

import java.util.List;

/**
 * 部门domain层
 */
@Data
public class Department extends BaseDomain{

    private String sn;
    private String name;
    private Integer state;
    //path路径用于修改表格数据回显
    private String path;
    //上级部门
    private Department parent;
    //部门经理
    private Employee manager;
    //子级部门
    private List<Department> children;
    public Long getValue(){
        return this.id;
    }
    public String getLabel(){
        return this.name;
    }
}
